package com.deep.deepenterpise.common.enums;

import lombok.Getter;

/**
 * @author xyz
 * @version 1.0
 * @title DrBaseEnum
 * @description
 * @create 2024/5/20 16:18
 */
@Getter
public enum DrBaseEnum {
    BASE_UNIT("BASE_UNIT");;

    private final String drCode;

    DrBaseEnum(String drCode) {
        this.drCode = drCode;
    }

    public boolean compare(String drCode) {
        return this.drCode.equals(drCode);
    }

    public boolean compare(DrBaseEnum drBaseEnum) {
        return this.compare(drBaseEnum.getDrCode());
    }
}
